export default {
  name: [{ required: true, message: "姓名不能为空", trigger: "blur" }],
  password: [
    { required: true, message: "密码不能为空", trigger: "blur" },
    { min: 6, message: "密码为6位以上", trigger: "blur" }
  ],
  code: [{ required: true, message: "编码不能为空", trigger: "blur" }],
  mobile: [
    { required: true, message: "手机不能为空", trigger: "blur" },
    {
      pattern: /^((0\d{2,3}-\d{7,8})|(1[23456789]\d{9}))$/,
      message: "请输入正确手机",
      trigger: "blur"
    }
  ]
};
